package com.woniu.microworkorderserver.feign;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.woniu.microcommonsserver.entity.UserInfoEntity;
import com.woniu.microcommonsserver.param.PageResult;
import com.woniu.microcommonsserver.param.ResponseMsg;
import com.woniu.microworkorderserver.param.UserResult;
import com.woniu.microworkorderserver.workgroupmag.service.WorkGroupUserService;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/assetFeign")
public class AssetFeignController {

    @Resource
    private AssetServerFeign assetServerFeign;

    @RequestMapping(value = "/findAssetAll",produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseMsg findAssetAll(){
        System.out.println(111);
        ResponseMsg msg = assetServerFeign.findAssetAll();
        System.out.println(msg);
        return ResponseMsg.builder().code(200).msg("修改成功").data(msg).build();
    }
}
